#include "Server.hpp"
#include <iostream>

int main()
{
    Server server;
    server.OpenPipeForRead();
    std::string message;
    while(true)
    {
        if(server.RecvPipe(&message) > 0)
        std::cout << "Client Say# " << message << std::endl;
        else
        break;
    }
    std::cout << "client quit, me too" << std::endl;
    server.ClosePipe();
    return 0;
}